import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LayoutComponent } from './layout/layout.component';
import { IndexComponent } from './index/index.component';
import { BpmnComponent } from './bpmn/bpmn.component';
import { XlsxComponent } from './xlsx/xlsx.component';

// import { InitGuardService } from '../../services/init-guard/init-guard.service';


const routes: Routes = [
  {
    path: 'home',
    component: LayoutComponent,
    // canActivate: [ InitGuardService ],
    data: { breadcrumb: 'home' },
    children: [
      { path: 'index', component: IndexComponent,data: { breadcrumb: 'index' } },
      { path: 'bpmn', component: BpmnComponent,data: { breadcrumb: 'bpmn' } },
      { path: 'xlsx', component: XlsxComponent,data: { breadcrumb: 'xlsx' } }
    ]
  }
];

@NgModule({
  imports: [ RouterModule.forChild(routes) ],
  exports: [ RouterModule ]
})
export class showRoutingModule { }
